﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work6
{
    class Book1
    {
        public static int _num;
        public static string _title;
        public static double _price;

        public static int Num
        {
            get
            {
                return _num;
            }
            set
            {
                _num = value;
            }
        }

        public static string Title
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }

        public static double Price
        {
            get
            {
                return _price;
            }
            set
            {
                _price = value;
            }
        }

        public static void SetBook1Info(int num,string title,double price)
        {
            _num = num;
            _title = title;
            _price = price;
        }

        public static void PrintBook1Info()
        {
            Console.WriteLine("书的编号为:{0}",Num);
            Console.WriteLine("书的名称为:{0}",Title);
            Console.WriteLine("书的价格为:{0}",Price);

        }

    }
}
